home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-02-13 | 5.7 KB | 234 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: PfTypLs.xh.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxh.dll: 2.33
- */
-
- /*
- *
- * Classes defined in this interface
- *
- */
-
-
- #ifndef SOM_ODPlatformTypeList_xh
- #define SOM_ODPlatformTypeList_xh
-
- class ODPlatformTypeList;
-
- #define ODPlatformTypeList_MajorVersion 1
- #define ODPlatformTypeList_MinorVersion 0
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_ODObject_xh
- #include <ODObject.xh>
- #endif
-
- #ifndef ODPlatformTypeList_API
- #define ODPlatformTypeList_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
- class SOMClass;
- class SOMObject;
- class ODFrame;
- class ODFacet;
- class ODObject;
- class ODExtension;
- class ODPlatformTypeList;
- class ODPlatformTypeListIterator;
-
- /*
- * End of user-defined types.
- */
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define ODPlatformTypeListCClassData ODPlatformTypeListClassData
- #define ODPlatformTypeListNewClass(major,minor) somNewVersionedClassReference(ODPlatformTypeList,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define ODPlatformTypeListMetaClass SOMClass
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
-
- /* The API to the ODPlatformTypeList class object, and the methods it introduces. */
- SOMEXTERN struct ODPlatformTypeListClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMClass *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- somMToken AddLast;
- somMToken Remove;
- somMToken Contains;
- somMToken Count;
- somMToken CreatePlatformTypeListIterator;
- somMToken reserved1;
- somMToken reserved2;
- } SOMDLINK ODPlatformTypeListClassData;
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=reset
- #endif
-
- #if !defined(ODPlatformTypeList_Class_Source) && !defined(SOM_Module_pftypls_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list ODPlatformTypeListClassData
- #endif
- #endif
-
-
- /*
- * -- Typedefs and inline method declarations for left path inherited methods
- * -- are omitted because this compilation had -museinheritedmethods in effect
- */
-
-
- /*
- * -- Typedefs for ODPlatformTypeList Method Procedures
- */
- SOMEXTERN {
- typedef void (* SOMLINK somTD_ODPlatformTypeList_AddLast)(ODPlatformTypeList *somSelf, Environment *ev,
- ODPlatformType type);
- typedef void (* SOMLINK somTD_ODPlatformTypeList_Remove)(ODPlatformTypeList *somSelf, Environment *ev,
- ODPlatformType type);
- typedef ODBoolean (* SOMLINK somTD_ODPlatformTypeList_Contains)(ODPlatformTypeList *somSelf, Environment *ev,
- ODPlatformType type);
- typedef ODULong (* SOMLINK somTD_ODPlatformTypeList_Count)(ODPlatformTypeList *somSelf, Environment *ev);
- typedef ODPlatformTypeListIterator* (* SOMLINK somTD_ODPlatformTypeList_CreatePlatformTypeListIterator)(ODPlatformTypeList *somSelf, Environment *ev);
- }
-
- #endif /* ODPlatformTypeList_API */
-
-
- /*
- * -- This emitter treats Method Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to change this default
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for ODPlatformTypeList
- */
- class ODPlatformTypeList : public ODObject
- {
- public:
-
- // ODPlatformTypeList::new registers use of the class object, and then uses somNew
- // to allocate memory and load the object method table pointer.
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- // Allocate memory using the default allocator for ODPlatformTypeList, and
- // clear mem & set method table pointer, call basic initialization
- #ifdef SOMCHKNULL
- void * __somResult = (void *)
- somNewObject(ODPlatformTypeList);
- SOMCHKNULL(__somResult);
- return __somResult;
- #else
- return (void*) somNewObject(ODPlatformTypeList);
- #endif
- }
-
- // ODPlatformTypeList::delete uses the default deallocator for the object's class.
- void operator delete(void * obj)
- {
- if (obj) {
- SOM_Resolve(obj,SOMObject,somFree)
- ( (SOMObject*) obj );
- }
- }
-
- /* method: AddLast */
- void AddLast(Environment *ev,
- ODPlatformType type)
- {
- SOM_ResolveD(this,ODPlatformTypeList,ODPlatformTypeList,AddLast)
- (this,ev,type);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: Remove */
- void Remove(Environment *ev,
- ODPlatformType type)
- {
- SOM_ResolveD(this,ODPlatformTypeList,ODPlatformTypeList,Remove)
- (this,ev,type);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: Contains */
- ODBoolean Contains(Environment *ev,
- ODPlatformType type)
- {
- #ifdef SOMCHKEXCEPT
- ODBoolean __somResult =
- SOM_ResolveD(this,ODPlatformTypeList,ODPlatformTypeList,Contains)
- (this,ev,type);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,ODPlatformTypeList,ODPlatformTypeList,Contains)
- (this,ev,type);
- #endif
- }
-
- /* method: Count */
- ODULong Count(Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- ODULong __somResult =
- SOM_ResolveD(this,ODPlatformTypeList,ODPlatformTypeList,Count)
- (this,ev);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,ODPlatformTypeList,ODPlatformTypeList,Count)
- (this,ev);
- #endif
- }
-
- /* method: CreatePlatformTypeListIterator */
- ODPlatformTypeListIterator* CreatePlatformTypeListIterator(Environment *ev)
- {
- #ifdef SOMCHKEXCEPT
- ODPlatformTypeListIterator* __somResult =
- SOM_ResolveD(this,ODPlatformTypeList,ODPlatformTypeList,CreatePlatformTypeListIterator)
- (this,ev);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,ODPlatformTypeList,ODPlatformTypeList,CreatePlatformTypeListIterator)
- (this,ev);
- #endif
- }
-
- }; /* ODPlatformTypeList */
-
-
-
- #endif /* SOM_ODPlatformTypeList_xh */
-